#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int x(int n) 
{
	if (n <= 3)
		return 1;
	else
		return x(n - 2) + x(n - 4) + 1;
}
int main(void) 
{
	printf("%d\n", x(x(8)));
	return 0;
}